package com.ac.scum.log.web.model.user.mapper;

import com.ac.scum.log.bean.AdminUser;
import com.ac.scum.log.bean.UserPreference;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.AllArgsConstructor;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AdminUserMapper extends BaseMapper<AdminUser> {


    default AdminUser findUserByPhone(String phone) {
        return selectOne(Wrappers.lambdaQuery(AdminUser.class).eq(AdminUser::getPhone, phone));
    }
}
